@echo off
if "%GG_HOME%"=="" set GG_HOME=%~dp0..

if '%1=='## goto ENVSET

set GG_JAR="%GG_HOME%\lib"
for %%c in ("%GG_HOME%\lib\*.jar") do call %0 ## "%%c"

GOTO RUN

:RUN
java -cp %GG_JAR% com.xmxsuperstar.app.gg.Main %*
goto END

:ENVSET
set GG_JAR=%GG_JAR%;%2
goto END

:END
